import random
nomes = []

for i in range(3):
    nomes.append(raw_input("Digite o %do nome" %(i+1)))

for i in range(len(nomes)):
    random.shuffle(nomes)
    print nomes[len(nomes)-1]    
    nomes.pop()